<?php

class Backend_ErrorController extends Zend_Controller_Action
{

    public function init()
    {
        $this->_helper->layout->setLayout('backend/layout');
        $this->view->title = "";

        @session_start();
    }

    public function indexAction()
    {
        if(!isset($_SESSION['error'])){
            $this->_helper->getHelper("Redirector")->gotoUrl('/backend/');
        }

        $this->view->message = $_SESSION['error']['message'];
        $this->view->prev = $_SESSION['error']['prev'];
        unset($_SESSION['error']);
    }


}

